<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/html">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=$charset">
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
    <meta content="yes" name="apple-mobile-web-app-capable">
    <meta content="black" name="apple-mobile-web-app-status-bar-style">
    <meta content="telephone=no" name="format-detection">
    <meta charset="$charset">
    <title><!--{eval echo stripslashes($vote['title']);}--></title>
    <meta name="description" content="<!--{eval echo stripslashes($vote['content']);}-->">
    <link rel="stylesheet" href="{HEJIN_PATH}public/index{$vote['yuliua']}/touch.css">   
     <script type="text/javascript" src="{HEJIN_PATH}public/index{$vote['yuliua']}/jquery-2.1.3.min.js"></script>

                 <!--<script type="text/javascript" src="{HEJIN_PATH}public/index{$vote['yuliua']}/app.js"></script>-->
                 <script type="text/javascript" src="{HEJIN_PATH}public/index{$vote['yuliua']}/jquery.masonry.min.js"></script>
  <style>
.slider{display:none;}
.focus span{width:5px;height:5px;margin-left:5px;border-radius:50%;background:#CDCDCD;font-size:0}
.focus span.current{background:red;}
</style>
                
    </head>
<body> 
<header>

    <div class="m_head clearfix">
    	{if $ispicarr}
        <div class="slider">
		<ul>
        <!--{loop $picarray $picar}-->
        	<!--{eval $urlpic = explode('|',$picar)}-->
            {if count($urlpic)>1}
            	<li><a href="$urlpic[1]"><img src="$urlpic[0]"/></a></li>
            {else}
	    					<li><a href="#"><img src="$picar"/></a></li>
            {/if}            
        <!--{/loop}-->
				  	</ul>
		</div>
        {else}
        	<img src="<!--{eval echo stripslashes($vote['pic']);}-->" />
        {/if}
        <div class="num_box">
                         <ul class="num_box_ul">
                <li>
                    <span class="text">{lang hejin_toupiao:yibaoming}</span>
                    <span>$vote['zuopins']</span>
                </li>
                <li>
                    <span class="text">{lang hejin_toupiao:tprenci}</span>
                    <span><!--{eval echo $vote['toupiaos']+$vote['xntps'];}--></span>
                </li>
                <li>
                    <span class="text">{lang hejin_toupiao:viewnub}</span>
                    <span><!--{eval echo $vote['clicks']+$vote['xnlls'];}--></span>
                </li>
            </ul>
            {if $vote['yuliua']!=8}
            <img src="{HEJIN_PATH}public/index{$vote['yuliua']}/mw_004.jpg" />
            {/if}
        </div>
            </div>
</header>    <script type="text/javascript" src="{HEJIN_PATH}js/exif.js"></script>
    <script type="text/javascript" src="{HEJIN_PATH}js/binaryajax.js"></script>
    <script type="text/vbscript">
    Function IEBinary_getByteAt(strBinary, iOffset)
        IEBinary_getByteAt = AscB(MidB(strBinary, iOffset + 1, 1))
    End Function
    Function IEBinary_getBytesAt(strBinary, iOffset, iLength)
      Dim aBytes()
      ReDim aBytes(iLength - 1)
      For i = 0 To iLength - 1
       aBytes(i) = IEBinary_getByteAt(strBinary, iOffset + i)
      Next
      IEBinary_getBytesAt = aBytes
    End Function
    Function IEBinary_getLength(strBinary)
        IEBinary_getLength = LenB(strBinary)
    End Function
    </script>
<script type="text/javascript" src="{HEJIN_PATH}js/localResizeIMG2.js"></script>
<script type="text/javascript" src="{HEJIN_PATH}js/mobileBUGFix.mini.js"></script>

    <div class="apply">
        <p>{lang hejin_toupiao:baomingc}</p>
        <div class="blank10"></div>

        <form action="" id="signupok" method="post" accept-charset="utf-8">
         <input type="hidden" name="formhash" value="{FORMHASH}" />
         <input type="hidden" name="vid" value="$vid" />
            <dl class="clearfix">
                <dt>{if $vote['zpnamediy']}<!--{eval echo stripslashes($vote['zpnamediy']);}-->{else}{lang hejin_toupiao:xingming}{/if}:</dt>
                <dd><input type="text" class="input_txt" id="zpname" value="" name="zpname" placeholder="{lang hejin_toupiao:qingsf}{if $vote['zpnamediy']}<!--{eval echo stripslashes($vote['zpnamediy']);}-->{else}{lang hejin_toupiao:xingming}{/if}" maxlength="12"></dd>
            </dl>
            <dl class="clearfix">
                <dt>{lang hejin_toupiao:lianxidh}:</dt>
                <dd><input type="number" class="input_txt" value="" name="telphone" id="telphone" placeholder="{lang hejin_toupiao:qsrlxdh}"></dd>
            </dl>
            <dl class="upload clearfix">
                <dt>{lang hejin_toupiao:shangczp}<br>{if $picnum==1}1{else}1-{$picnum}{/if}{lang hejin_toupiao:zhang}:</dt>
                <dd class="upload_area clearfix">
                    <ul id="imglist" class="post_imglist"></ul>
                    <div class="upload_btn">
                        {if $shebei==1}
                        <input type="file" id="upload_image" value="{lang hejin_toupiao:picsc}" accept="image/jpeg,image/gif,image/png" capture="camera">{else}<input type="file" id="upload_image" value="{lang hejin_toupiao:picsc}" accept="image/*" capture="camera">{/if}
                    </div>
                </dd>
            </dl>
            <dl class="clearfix">
                <dt>{if $vote['zpmsdiy']}<!--{eval echo stripslashes($vote['zpmsdiy']);}-->{else}{lang hejin_toupiao:miaoshu}{/if}:</dt>
                <dd><textarea class="textarea" placeholder="{lang hejin_toupiao:qingsf}{if $vote['zpmsdiy']}<!--{eval echo stripslashes($vote['zpmsdiy']);}-->{else}{lang hejin_toupiao:miaoshu}{/if}" name="content" id="content"></textarea></dd>
            </dl>
            <div style="color: #EC6941;font-size: 16px;padding: 0 15px 15px 15px; line-height:24px; font-weight:bolder;"><!--{eval echo stripslashes($vote['yuliuc']);}--></div>
                        <div class="btn_box">
                <input type="submit" name="signup" id="tijiaoan" class="button" value="{lang hejin_toupiao:querenbm}">
            </div>
            <div class="blank10"></div>
        </form>
    </div>
</div>
<section class="rules">
    <div class="text">    {if $vote['shuomingta']}
        <div class="prize"><!--{eval echo stripslashes($vote['shuomingta']);}--></div>
            <div class="neirong"><!--{eval echo replace($vote['shuomingca']);}--></div>
    {/if}
    {if $vote['shuomingtb']}
        <div class="prize"><!--{eval echo stripslashes($vote['shuomingtb']);}--></div>
             <div class="neirong"><!--{eval echo replace($vote['shuomingcb']);}--></div>
    {/if}
</div>
    <div class="text">    {if $vote['shuomingtc']}
        <div class="ways"><!--{eval echo stripslashes($vote['shuomingtc']);}--></div>
            <div class="neirong"> <!--{eval echo replace($vote['shuomingcc']);}--></div>
    {/if}
</div>
</section>


<section>
{if $bmzt==1}
    <div class="pop" id="guanzhu" style="display:block">
        <div class="mengceng"></div>
        <div class="pop_up">
                        <p class="tit_p">{lang hejin_toupiao:baomingtsa}</p>
            <p class="tit_txt">{lang hejin_toupiao:toupiaotsg}<!--{eval echo date("Y-m-d H:i",$vote[start_time]);}-->{lang hejin_toupiao:toupiaotsf}</p>
            
        </div>
    </div>
{elseif $bmzt==2}
    <div class="pop" id="guanzhu" style="display:block">
        <div class="mengceng"></div>
        <div class="pop_up">
                        <p class="tit_p">{lang hejin_toupiao:baomingtsb}</p>
        </div>
    </div>
{elseif $bmzt==3}
    <div class="pop" id="guanzhu" style="display:block">
        <div class="mengceng"></div>
        <div class="pop_up">
                        <p class="tit_p">{$hejintoupiao['hjtp_ydgzbt']}</p>
            <p class="tit_txt"><!--{eval echo stripslashes($vote['wxgzts']);}--></p>
            <a href="<!--{eval echo stripslashes($vote['wxgzurl']);}-->" class="gz_btn">{$hejintoupiao['hjtp_ydgzan']}</a>
        </div>
    </div>
{/if}
</section>

<div id="console"></div>



{if $hejintoupiao['hjtp_jssdk'] && $hejinbox['hjbox_appid'] && $hejinbox['hjbox_appsecret']}
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script type="text/javascript">
    wx.config({
        debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来，若要查看传入的参数，可以在pc端打开，参数信息会通过log打出，仅在pc端时才会打印。
        appId: '{$signPackage["appId"]}', // 必填，公众号的唯一标识
        timestamp: "{$signPackage[timestamp]}", // 必填，生成签名的时间戳
        nonceStr: '{$signPackage["nonceStr"]}', // 必填，生成签名的随机串
        signature: '{$signPackage["signature"]}',// 必填，签名，见附录1
        jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage'] // 必填，需要使用的JS接口列表，所有JS接口列表见附录2
    });

    wx.ready(function(){
        wx.error(function(res){
            console.log(res);
        });
        //朋友圈
        wx.onMenuShareTimeline({
            title: '<!--{eval echo stripslashes($vote[title]);}-->', // 分享标题
            link: '{HEJIN_URL}&model={$symodel}&vid=$vote[id]', // 分享链接
            imgUrl: '<!--{eval echo stripslashes($vote[icon]);}-->', // 分享图标
            success: function () {
                // 用户确认分享后执行的回调函数
            },
            cancel: function () {
                // 用户取消分享后执行的回调函数
            }
        });

        //分享给朋友
        wx.onMenuShareAppMessage({
            title: '<!--{eval echo stripslashes($vote[title]);}-->', // 分享标题
            desc: '<!--{eval echo stripslashes($vote[content]);}-->', // 分享描述
            link: '{HEJIN_URL}&model={$symodel}&vid=$vote[id]', // 分享链接
            imgUrl: '<!--{eval echo stripslashes($vote[icon]);}-->', // 分享图标
            type: '', // 分享类型,music、video或link，不填默认为link
            dataUrl: '', // 如果type是music或video，则要提供数据链接，默认为空
            success: function () {
                // 用户确认分享后执行的回调函数
            },
            cancel: function () {
                // 用户取消分享后执行的回调函数
            }
        });
    });
</script>
{/if}
<script type="text/javascript">
    (function () {
        var viewImg = $("#imglist");
        var imgurl = '';
        var imgcount = 0;
        $('#upload_image').localResizeIMG({
            width: {if $hejintoupiao['hjtp_picwidth']}{$hejintoupiao['hjtp_picwidth']}{else}480{/if},
            quality: 0.8,
            success: function (result) {
                var status = true;
                if (result.height > 1600) {
                    status = false;
                    alert("{lang hejin_toupiao:picxianzhi}");
                }
                if (viewImg.find("li").length > $xzpic) {
                    status = false;
                    alert("{lang hejin_toupiao:picscb}{$picnum}{lang hejin_toupiao:picscc}");
                }
                if (status) {
                    viewImg.append('<li><span class="pic_time"><span class="p_img"></span><em>50%</em></span></li>');
                    viewImg.find("li:last-child").html('<span class="del"></span><img class="wh60" src="' + result.base64 + '"/><input type="hidden" id="file'
                    + imgcount
                    + '" name="fileup[]" value="'
                    + result.clearBase64 + '">');

                    $(".del").on("click",function(){
                        $(this).parent('li').remove();
                        $("#upload_image").show();
                    });
                    imgcount++;
                }
            }
        });
    })();
</script>
<script type="text/javascript">
$(function($){
	$("#signupok").submit(function(){
		var name = $("#zpname").val();
		var tel = $("#telphone").val();
		var content = $("#content").val();

		if(name.length == 0){alert('{lang hejin_toupiao:qingsf}{if $vote[zpnamediy]}<!--{eval echo stripslashes($vote[zpnamediy]);}-->{else}{lang hejin_toupiao:xingming}{/if}');return false;}

		var telreg = /^1[3|4|5|7|8][0-9]\d{8}$|^\d{8}$/;
		if (tel.length == 0) {alert("{lang hejin_toupiao:qsrlxdh}"); return false;}
		if (!telreg.test(tel)){alert("{lang hejin_toupiao:qsrlxdha}");return false;}


		var length = $("#imglist").find("li").length;
		if(length == ''|| length == null  || length == undefined || length == 'undefined' || length < 1 ){alert('{lang hejin_toupiao:picsca}');return false;}
		if(content== '' || content == null || content == undefined || content == 'undefined' ){alert('{lang hejin_toupiao:qingsf}{if $vote[zpmsdiy]}<!--{eval echo stripslashes($vote[zpmsdiy]);}-->{else}{lang hejin_toupiao:miaoshu}{/if}');return false;}
		$('#tijiaoan').val('{lang hejin_toupiao:bmwait}');
		//$('#tijiaoan').attr('disabled','true');
	});
});


$('.ico_1').on('click', function(){
  location.href = "{HEJIN_URL}&model={$symodel}&vid=$vote['id']";
});
$('.ico_2').on('click', function(){
  location.href = "{HEJIN_URL}&model={$phmodel}&vid=$vote['id']";
});
$('.ico_3').on('click', function(){
  {if $ishavezp}
  	location.href = "{HEJIN_URL}&model={$xqmodel}&zid=$havezp['id']";
  {else}
  	{if $vote['start_time']<time() && $vote['over_time']>time()}
  		location.href = "{HEJIN_URL}&model=signup&vid=$vote['id']";
  	{else}
  		{if $vote['start_time']>time()}
						$('#voting_title').html("<!--{eval echo date('Y-m-d H:i',$vote['start_time']);}--> {lang hejin_toupiao:baomwksts}");
						$('#voting_content').html('');
                        $('#voting').show();
  		{else}
						$('#voting_title').html('{lang hejin_toupiao:baomyjs}');
						$('#voting_content').html('');
                        $('#voting').show();
  		{/if}
  	{/if}
  {/if}
});
$('.ico_4').on('click', function(){
	{if $vote['yuliud']}
	location.href = "<!--{eval echo stripslashes($vote['yuliud']);}-->";
	{else}
	location.href = "$hejintoupiao['hjtp_dbdhurl']";
	{/if}
});


$.get('{HEJIN_URL}&model=clicks&vid=$vote[id]&formhash={FORMHASH}');
</script>

{if $ispicarr}
  <script type="text/javascript" src="{HEJIN_PATH}public/slider/yxMobileSlider.js"></script>
<script type="text/javascript">
	$(".slider").yxMobileSlider({during:5000,height:{$hejintoupiao['hjtp_hdgd']}});
	var nowtime=new Date().getTime();
	function _fresh(){
		var endtime=new Date("2015/02/18 12:00:00");//这里设置的时间为2011年，您可以修改为其它时间。
		//var nowtime = new Date();
		var leftsecond=parseInt((endtime.getTime()-nowtime)/1000);
		if(leftsecond<0){leftsecond=0;}
			__d=parseInt(leftsecond/3600/24);
			__h=parseInt((leftsecond/3600)%24);
			__m=parseInt((leftsecond/60)%60);
			__s=parseInt(leftsecond%60);
		var sums=__d+__h+__m+__s;
		var if_Receive="";
		if(sums!=0){
			var d=document.getElementById("_d");
			var h=document.getElementById("_h");
			var m=document.getElementById("_m");
			var s=document.getElementById("_s");
			h.innerHTML=__h+__d*24;
			m.innerHTML=__m;
			s.innerHTML=__s;
		nowtime=nowtime+1000;
		setTimeout(_fresh,1000);
		}else if(!if_Receive){
			document.getElementById("msg").innerHTML="";
		}
	}
	_fresh();
</script>
{/if}  

<div style="display:none">$hejintoupiao['hjtp_dsftjdm']</div></body>
</html>